package com.yeyks.consumer.dal.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 鱼宝可兑换的商品表
 * </p>
 *
 * @author yun
 * @since 2019-09-19
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="FishBallGoods对象", description="鱼宝可兑换的商品表")
public class FishBallGoods implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "券id")
    @TableField("coupon_id")
    private Integer couponId;

    @ApiModelProperty(value = " 0 优惠券，1代金券  ,  2实体商品")
    @TableField("type")
    private Integer type;

    @ApiModelProperty(value = "商品数量")
    @TableField("count")
    private Integer count;

    @ApiModelProperty(value = "商品图片")
    @TableField("image")
    private String image;

    @ApiModelProperty(value = "商品标题")
    @TableField("title")
    private String title;

    @ApiModelProperty(value = "需要鱼宝数可兑换")
    @TableField("need_fishball_count")
    private Integer needFishballCount;

    @ApiModelProperty(value = "商品描述")
    @TableField("`desc`")
    private String desc;

    @ApiModelProperty(value = "0:不可用  1：可用")
    @TableField("`status`")
    private Integer status;

    @ApiModelProperty(value = "商品价格")
    @TableField("price")
    private Integer price;

    @ApiModelProperty(value = "删除标记：0；未删除  1：已删除")
    @TableField("delete_flag")
    private Integer deleteFlag;

    @ApiModelProperty(value = "详情，包括图片")
    @TableField("extra_info")
    private String extraInfo;

    @TableField("gmt_create")
    private Date gmtCreate;

    @TableField("gmt_modified")
    private Date gmtModified;

    @ApiModelProperty(value = "操作人ID")
    @TableField("operator_id")
    private Integer operatorId;


    public static final String ID = "id";

    public static final String COUPON_ID = "coupon_id";

    public static final String TYPE = "type";

    public static final String COUNT = "count";

    public static final String IMAGE = "image";

    public static final String TITLE = "title";

    public static final String NEED_FISHBALL_COUNT = "need_fishball_count";

    public static final String DESC = "desc";

    public static final String STATUS = "status";

    public static final String PRICE = "price";

    public static final String DELETE_FLAG = "delete_flag";

    public static final String EXTRA_INFO = "extra_info";

    public static final String GMT_CREATE = "gmt_create";

    public static final String GMT_MODIFIED = "gmt_modified";

    public static final String OPERATOR_ID = "operator_id";

}

